﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:rhythm="clr-namespace:SynergyControls;assembly=SynergyControls"
                    xmlns:local="clr-namespace:XAudio2Controls">

    <!--Region: Effects Panel-->
    <Style TargetType="{x:Type local:EffectsPanel}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:EffectsPanel}">
                    <Grid x:Name="LayoutRoot">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition  Width="30" />
                        </Grid.ColumnDefinitions>
                        <Slider
                            x:Name="PART_IntensitySlider"
                            Orientation="Vertical" 
                            Width="30" 
                            Maximum="100" 
                            Minimum="0" 
                            Value="100"
                            Grid.Column="2" 
                            Grid.Row="0" 
                            Grid.RowSpan="4" 
                            Interval="1" 
                            TickFrequency="1" 
                            IsSnapToTickEnabled="True" />
                        <Label Grid.Row="4" Grid.Column="2" DataContext="{Binding ElementName=PART_IntensitySlider}" Content="{Binding Path=Value}" />
                        <Grid x:Name="LabelGrid" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
                            <Border BorderBrush="{DynamicResource controlBackgroundBrush}" BorderThickness=".8" Padding="2" Opacity=".5">
                                <StackPanel Background="{DynamicResource ControlBackgroundBrush}" Orientation="Horizontal">
                                    <Label x:Name="PART_EffectTypeLabel" HorizontalAlignment="Left" VerticalAlignment="Stretch" FontSize="12" />
                                    <CheckBox x:Name="PART_OnOffCheckbox" HorizontalAlignment="Right" VerticalAlignment="Center"/>
                                    <Button x:Name="PART_btnRemoveEffectPanel" Width="40" HorizontalAlignment="Right" Content="-"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Border Grid.Row="1" Grid.Column="0"  BorderThickness=".7" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <rhythm:RadialControl x:Name="PART_RadialDial1" SnapAngle="3.6" Height="36" Width="36" HorizontalAlignment="Left"/>
                        </Border>
                        <Border Grid.Row="1"  Grid.Column="1" BorderThickness=".7" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <StackPanel Grid.Column="1" Orientation="Vertical">
                                <Label x:Name="PART_ParamNameLabel1" HorizontalAlignment="Stretch"/>
                                <Label x:Name="PART_ParamLabel1" HorizontalAlignment="Stretch"/>
                            </StackPanel>
                        </Border>
                        <Border  Grid.Row="2" Grid.Column="0" BorderThickness=".7" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <rhythm:RadialControl x:Name="PART_RadialDial2" SnapAngle="3.6"  Height="36" Width="36" HorizontalAlignment="Left"/>
                        </Border>
                        <Border Grid.Row="2" Grid.Column="1" BorderThickness=".7" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <StackPanel Orientation="Vertical">
                                <Label x:Name="PART_ParamNameLabel2"/>
                                <Label x:Name="PART_ParamLabel2"/>
                            </StackPanel>
                        </Border>
                        <Border Grid.Row="3"  Grid.Column="0"  BorderThickness=".7" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <rhythm:RadialControl Grid.Column="0" x:Name="PART_RadialDial3" SnapAngle="3.6" Height="36" Width="36" HorizontalAlignment="Left"/>
                        </Border>
                        <Border Grid.Row="3" Grid.Column="1" BorderThickness=".7" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <StackPanel Orientation="Vertical">
                                <Label x:Name="PART_ParamNameLabel3" HorizontalAlignment="Stretch"/>
                                <Label x:Name="PART_ParamLabel3" HorizontalAlignment="Stretch"/>
                            </StackPanel>
                        </Border>
                        <Border
                            x:Name="PART_BorderParam4" 
                            Grid.Row="4" 
                            Grid.Column="0" 
                            BorderThickness=".7" 
                            BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <rhythm:RadialControl x:Name="PART_RadialDial4" SnapAngle="3.6" Height="36" Width="36" HorizontalAlignment="Left"/>
                        </Border>
                        <Border Grid.Row="4" Grid.Column="1" BorderThickness=".7" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                            <StackPanel Orientation="Vertical">
                                <Label x:Name="PART_ParamNameLabel4"/>
                                <Label x:Name="PART_ParamLabel4"/>
                            </StackPanel>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--EndRegion: Effects Panel-->

</ResourceDictionary>